#include "CPoint2D.h"

CPoint2D::CPoint2D(void)
	: m_X(0)
	, m_Y(0)
{
}

CPoint2D::CPoint2D(int _X, int _Y)
	: m_X(_X)
	, m_Y(_Y)
{
}

CPoint2D::~CPoint2D(void)
{
}

CPoint2D CPoint2D::GetPoint(void)
{
	CPoint2D Point(m_X, m_Y);
	return Point;
}

void CPoint2D::SetPoint(int _X, int _Y)
{
	m_X = _X;
	m_Y = _Y;
}

int CPoint2D::GetX(void)
{
	return m_X;
}

void CPoint2D::SetX(int _X)
{
	m_X = _X;
}

int CPoint2D::GetY(void)
{
	return m_Y;
}

void CPoint2D::SetY(int _Y)
{
	m_Y = _Y;
}

bool CPoint2D::operator==(CPoint2D _Point)
{
	return((m_X == _Point.GetX()) && (m_Y == _Point.GetY()));
}

bool CPoint2D::operator!=(CPoint2D _Point)
{
	return((m_X != _Point.GetX()) || (m_Y != _Point.GetY()));
}